package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface CommentService {

    // 保存comment
    Integer saveComment(Comment comment);

    // 删除comment
    Integer removeComment(ObjectId publishId, Long userId, Integer commentType);

//  根据动态id获得评论信息
    PageBeanVo findByPage(String movementId, Integer pageNum, Integer pageSize, Integer i);
    // 查看点赞、评论、喜欢的用户信息
    PageBeanVo findCommentTypeByPage(Long publishUserId, Integer commentType, Integer pageNum, Integer pageSize);
}